package com.fbli.service.Impl;

import com.fbli.mapper.AboutMapper;
import com.fbli.pojo.About;
import com.fbli.service.AboutService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Timestamp;
import java.util.Date;

@Service
public class AboutServiceImpl implements AboutService {
@Autowired
private AboutMapper aboutMapper;



    @Override
    public About about(Integer aboutId) {

        return aboutMapper.about(aboutId);
    }

    @Override
    public void update(About about) {
        Timestamp time = new Timestamp(new Date().getTime());
        about.setReleaseTime(time);
        aboutMapper.updateByPrimaryKey(about);
    }
}
